$(document).ready(function () {
    testCategoryService.allTestCategory(findCategory);
});


function findCategory(category){
    var option = '<option value="">' + '--请选择--' + '</option>';
    for (var i = 0; i < category.length; i++) {
        option = option + '<option value="' + category[i].type + '">'
            + category[i].type + "</option>";
    }
    $('#category').html(option);
}